import React from 'react'
import ReactDOM from 'react-dom/client'
import { Provider } from 'react-redux'
import { BrowserRouter } from 'react-router-dom'
import { PersistGate } from 'redux-persist/integration/react'
import Admin from './Admin'
import { persistor, store } from './store'


// 加载样式文件
import 'antd/dist/antd.less'
import './load.less'

const root = ReactDOM.createRoot(document.getElementById('root'))
root.render(
  <BrowserRouter>
      <Provider store={store}>
        <PersistGate persistor={persistor}>
          <Admin />
        </PersistGate>
      </Provider>
  </BrowserRouter>
)
